//
//  NextViewController.m
//  test
//
//  Created by kepuG on 16/10/12.
//  Copyright © 2016年 text. All rights reserved.
//

#import "NextViewController.h"
#import "GQRedPakageView.h"
#import "ProgressHUD.h"
#define K_W [UIScreen mainScreen].bounds.size.width
#define K_H [UIScreen mainScreen].bounds.size.height


@interface NextViewController ()
- (IBAction)back:(id)sender;

@end

@implementation NextViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    
    
//    UIView *kveiw = [[UIView alloc] initWithFrame:CGRectMake(0, 0,K_W, K_H)];
//    
//    kveiw.backgroundColor = [UIColor redColor];
//    
//    UIWindow *window = [[UIApplication sharedApplication].windows lastObject];
//    
//    [window addSubview:kveiw];
//    [window makeKeyAndVisible];

 //   [GQRedPakageView showPakege];

    
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [super touchesBegan:touches withEvent:event];
    [ProgressHUD show];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (IBAction)back:(id)sender {
    
//    if (self.delegateSignal) {
//        [self.delegateSignal sendNext:@5];
//    }
    
    [self dismissViewControllerAnimated:YES completion:nil];
    
    
}
@end
